package com.sky.service;

import com.sky.result.Result;
import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;


public interface ReportService {
    /**
     * 营业数额数据统计
     *
     * @param begin
     * @param end
     * @return
     */
    Result<TurnoverReportVO> turnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 总用户和新增用户
     *
     * @param begin
     * @param end
     * @return
     */

    Result<UserReportVO> userStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计
     * @param begin
     * @param end
     * @return
     */
    Result<OrderReportVO> orderStatistics(LocalDate begin, LocalDate end);

    /**
     * top10
     * @param begin
     * @param end
     * @return
     */
    Result<SalesTop10ReportVO> top10(LocalDate begin, LocalDate end);
    /**
     * 导出近30天的运营数据报表
     * @param response
     **/
    void exportBusinessData(HttpServletResponse response);
}
